package top.haichi.webpaper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor

@TableName("paper")
public class Paper {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    private String status;
    private String title;
    private String author;
    private LocalDate createdAt;
    private LocalDate updatedAt;
    private String type;
    private Integer size;
    private String downloadLink;

    private String ownerId;
}
